package com.base;

/**
 * 构造器
 * Created by zhuangqi on 2016/12/9.
 */

class  Rock {
    Rock() {
        System.out.println("Rock");
    }
}

public class SimpleConstructor {
    public static void main(String[] args) {
        for (int i = 0; i < 10; i++) {
           new Rock();
        }
    }
}
